package com.atguigu.mapper;

import com.atguigu.pojo.Employee;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmpMapper {
  Map selectEmpMaxSalary();
 List<Employee> findAllEmp();
 @MapKey("empName")
 Map<String,Employee> queryAll();
    @MapKey("empName")
    Map<String,Employee> queryById(Integer id);
    int save( @Param("empId") Integer id,@Param("empName") String empNam,@Param("empSalary") Double empSalar);
    int saveEmployee(Employee employee);
}
